package edu.ctbu.insurance.mapper;

import edu.ctbu.insurance.bean.Claim;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author djl
 * @since 2024-06-28
 */
public interface ClaimMapper extends BaseMapper<Claim> {
    /**
     * 根据理赔ID和保单ID进行模糊查询
     * @param claimId 理赔ID
     * @param policyId 保单ID
     * @return List<Claim>
     */
    List<Claim> findAllClaimLikeClaimIdAndPolicyId(@Param("claimId") String claimId, @Param("policyId") String policyId);
}
